//
//  NearbyView.m
//  beautyAccompany
//
//  Created by xiaocankeji on 15/11/24.
//  Copyright © 2015年 xiaocankeji. All rights reserved.
//

#import "NearbyView.h"

@implementation NearbyView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _icon = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, self.height-20, self.height-20)];
        _icon.image = [UIImage imageNamed:@"abc"];
        [self addSubview:_icon];
        
        _countLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.height, 10, DeviceWidth - 100-self.height, 30)];
        _countLabel.text = @"370位";
        _countLabel.font = kFont(30);
        _countLabel.textColor = APPCOLOR(1);
        [self addSubview:_countLabel];
        
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.height, 40, DeviceWidth - 100-self.height, 30)];
        _contentLabel.text = @"美陪师,在你附近";
        _contentLabel.font = kFont(15);
        _contentLabel.textColor = RGBA(88, 88, 88, 1);
        [self addSubview:_contentLabel];

    
        
        _lookLabel = [[UILabel alloc] initWithFrame:CGRectMake(DeviceWidth - 90, 0, 60, self.height)];
        _lookLabel.text = @"点击查看";
        _lookLabel.font = kFont(14);
        _lookLabel.textColor = RGBA(188, 188, 188, 1);
        [self addSubview:_lookLabel];
        
        
        _lookIcon = [[UIImageView alloc] initWithFrame:CGRectMake(DeviceWidth - 27 , self.height/2-7  , 8, 14)];
        _lookIcon.image = [UIImage imageNamed:@"abc"];
        [self addSubview:_lookIcon];
        
        
    }
    
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
